//
//  CommonTools.swift
//  WeiBoNew
//
//  Created by 秦川 on 16/5/13.
//  Copyright © 2016年 秦川. All rights reserved.
//

import UIKit
//  切换根视图控制的通知名

let SwitchRootVCNotification = "SwitchRootVCNotification"
//  RGB颜色创建
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) ->UIColor{

return UIColor(red: red, green: green, blue: blue, alpha: 1)
}

func RandomColor()->UIColor{
let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    
    
    return RGB(CGFloat(red) / 255, green: CGFloat(green)/255, blue: CGFloat(blue)/255)
    
}